import request from "@/utils/request";
import { AxiosPromise } from "axios";
import { WechatUser, WechatUserQuery } from "./types";

export function fetchList(queryParams: WechatUserQuery): AxiosPromise<PageResult<WechatUser[]>> {
  return request({
    url: '/admin/wechatUser/index',
    method: 'get',
    params: queryParams,
  })
}

export function syncData(queryParams: WechatUserQuery) {
  return request({
    url: '/admin/wechatUser/syncData',
    method: 'get',
    params: queryParams,
  })
}

export function black(data: any) {
  return request({
    url: '/admin/wechatUser/black',
    method: 'post',
    data,
  })
}

export function updateMark(data: any) {
  return request({
    url: '/admin/wechatUser/remark',
    method: 'post',
    data,
  })
}
